<!DOCTYPE html>
<html>
<#include "../head.html">
    <style>
        .account_type{float:left;margin-top: 3px;}
    </style>
<body>
<table class="mc">
<tr>
<td class="mc-l">
    <!--左侧导航---{-->
    <div id="navPanelContainer">
        <div class="system-logo cd"></div>
        <!--管理员信息---{-->
        <#include "../adminInfo.html">
            <!--管理员信息---}-->
            <div class="nav-wrap">
            	<!-- v1.6.6.2 RDPROJECT-238 zza 2013-10-21 start -->
                <#include "../report/left.html">
                <!-- v1.6.6.2 RDPROJECT-238 zza 2013-10-21 end -->
            </div>
    </div>
    <!--左侧导航---}-->
</td>
<td class="mc-m">
    <div class="navToggle"></div>
</td>
<td class="mc-r">
<!--顶部导航---{-->
<#include "../topNav.html">
    <!--顶部导航---}-->

    <!--面包屑导航---{-->
    <#assign moduleName="列名基础数据管理">
        <#include "banner.html">
            <!--面包屑导航---}-->

            <!--工具栏--{-->
            <div id="toolbar" class="clearfix">
                <div class="toolbor-module export">
                    <input type="button" onclick="add()" value="添加" class="input-button export-btn"/>
                </div>
              
                <div class="toolbor-module search">    
                    <input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                </div>
                <div class="toolbor-module search">
                    <input type="text" name="column_name" id="column_name" value="请输入报表字段名" data-value="请输入报表字段名" class="search-value">
                </div>
                <div class="toolbor-module search">
                    <input type="text" name="china_name" id="china_name" value="请输入报表中文名称" data-value="请输入报表中文名称" class="search-value">
                </div>
                <div class="toolbor-module search">
                	<div style="height:22px;line-height:22px;float:left;">类型：</div>
					<div class="select-box" id="status">
						<div class="tag-select">全部</div>
						<ul class="tag-options">
							<li data-value="-1">全部</li>
							<li data-value="0">不启用</li>
							<li data-value="1">启用</li>
						</ul>
					</div>
					</div>
            </div>
            <!--工具栏--}-->

            <div id="main" class="clearfix">
                <form action="" method="post">
                    <table class="data-list">
                        <tr class="header">
                            <td>ID</td>
                            <td>报表中文名</td>
                            <td>报表字段名</td>
                            <td>状态</td>
                            <td>添加时间</td>
                            <td>修改时间</td>
                            <td>操作者</td>
                            <td>操作</td>
                        </tr>
                        <#import "../../common/function.html" as func>
                        <!-- v1.6.6.2 zza 2013-10-21 start -->
                        <#if columnList??>
	                        <#list columnList as item>
	                            <tr class="s">
	                                <td>${item.id}</td>
	                                <td>${item.china_name!"-"}</td>
	                                <td>${item.column_name!"-"}</td>
	                                 <td><#if item.status == 0>不启用<#elseif item.status == 1>启用<#else>-</#if></td>
	                               	 <td><#if item.addtime != 0>${dateformat(item.addtime?c)}<#else>-</#if></td>
	                                 <td><#if item.update_time != 0>${dateformat(item.update_time?c)}<#else>-</#if></td>
	                                 <td>${item.operator!"-"}</td>
	                                <td ><a href="/admin/report/editColumn.html?id=${item.id?c}">修改</a></td>
	                            </tr>
	                        </#list>
                        </#if>
                        <!-- v1.6.6.2 zza 2013-10-21 start -->
                    </table>
                </form>

                <!--底部工具栏--{-->
                <div id="bottomToolbar" class="clearfix">
                    <div class="other-tool">
                        <dl class="refresh-data">
                            <dt class="refresh-data-icon"></dt>
                            <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                        </dl>
                    </div>

                    <!--翻页系统--{-->
                    <div class="container">
                        <#import "../../common/page.html" as pager>
                            <@pager.pagination page=page url="/admin/report/column.html" map=params style="style1"  />
                    </div>
                    <!--翻页系统--}-->
                </div>
                <!--底部工具栏--}-->

                <script>
                    var url = '/admin/report/column.html?search=true';
                    function sousuo(){
                        var sou = "";
                        var china_name = $("#china_name").val();
                        if (china_name!=""&&china_name!="请输入报表中文名称"){
                            sou += "&china_name="+china_name;
                        }
                        var column_name = $("#column_name").val();
                        if (column_name!=""&&column_name!="请输入报表字段名"){
                            sou += "&column_name="+column_name;
                        }
            			var status = $("#status").find(".open-selected").attr("data-value");
                        if (status!="" && status!=null){
            				sou += "&status="+status;
            			}
                        if (sou!=""){
                            location.href=url+sou;
                        }
                    }
                    function add(){
                       location.href="/admin/report/addColumn.html";
                    }
                </script>
            </div>

</td>
</tr>
<tr>
    <!--尾部--{-->
    <td colspan="3" class="mc-b"><#include "../foot.html"></td>
    <!--尾部--}-->
</tr>
</table>

</body>
</html>
<#include "../jsPage.html">